package com.guoyh.pronet

import com.guoyh.baseutils.viewModel.SupportViewModel

/**
 * @CreateDate: 2021/8/23 1:51 下午
 * @Author: guoyh
 * @Description: java类作用描述
 */
open class BaseViewModel : SupportViewModel() {

    fun toCheck(code: Int): Boolean {

        when (code) {
            904 -> {
                toRefreshToken()
            }

            905 -> {

            }
        }

        return code == 904 || code == 905
    }


    private fun toRefreshToken() {
//        AppParams.refreshToken
    }


}